<?php 
require_once '../include.php';

header('content-type:text/html;charset=utf-8');

@$page=$_REQUEST['page']?(int)$_REQUEST['page']:1;
$pageSize=10;

$whereStr='';

$rows=getConsultByPage($page,$pageSize,$whereStr);
?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>行业资讯</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="page">
    <header style="background:#fff">
       <span class="information-color"></span> <span class="information-title">行业资讯</span><span class="information-navigation"><a href="index.php">首页</a>><a href="information.php">行业资讯</a></span>
    </header>
    <div class="information">
	<?php 
                            $id = 1;
                            foreach($rows as $row):?>
                           <div class="card">
								<div class="content-block-title"></div>
								<div class="card-content">
									<div class="card-content-inner">
										<p>【<?php echo $row['cName'];?>】 <?php echo $row['title'];?></p>
										<p class="color-gray">发表于 <?php echo date('Y-m-d', strtotime($row['aTime']));?><span  style="text-align: right;float: right;"><a href="article.php?id=<?php echo $row['bId'];?>&cId=<?php echo $row['id'];?>" class="button">阅读全文</a></span></p>
										<p><?php echo mb_substr($row['content'],0,20,"utf-8");?>......</p>
									</div>
								</div>
							</div>
	<?php endforeach;?>
	
    </div>
    <!--sheet-->
    <!--页脚-->
    <div>
        <nav class="bar bar-tab" style="background:#3f4447;z-index: 9999;">
            <a class="tab-item active" style="color:#fff" href="index.php">
                <span class="icon icon-home"></span>
                <span class="tab-label">首页</span>
            </a>
            <a class="tab-item" style="color:#fff" href="quotation.php">
                <span class="icon icon-card"></span>
                <span class="tab-label">申请报价</span>
            </a>
            <a class="tab-item" style="color:#fff" href="message.php">
                <span class="icon icon-message"></span>
                <span class="tab-label">留言咨询</span>
            </a>
           <a class="tab-item" style="color:#fff" href="tel:4000072972">
                <span class="icon icon-phone"></span>
                <span class="tab-label">一键拨打</span>
            </a>
        </nav>
    </div>
    <span class="bottom_footer">广州市柏澳景观设计有限公司 版权所有</span>

</div>
<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
</body>
</html>